<?php
/**
 * Tabs on tournament view
 *
 * @uses $vars['entity'], $vars['section']
 */
$tournament = $vars['entity'];
$baseUrl = $tournament->getUrl();

//Tabs Sections
$tabOptions = array(
	//General
	array
	(
		'title' 	=> 'General',
		'url' 		=> $baseUrl,
		'id' 		=> 'general',
		'selected'	=> $vars['section'] ? false : true
	),
	//Documentation
	array
	(
		'title' 	=> 'Documentación',
		'url' 		=> $baseUrl,
		'id' 		=> 'documentation',
		'selected'	=> $vars['section'] == 'documentation' ? true : false
	),
);

echo elgg_view('navigation/tabs',array("tabs" => $tabOptions));
?>